package com.neusoft.crm;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

import java.util.Properties;

/**
 * SpringAPP启动器
 *
 * @author msprc
 */
@SpringBootApplication
@EnableCaching
public class CrmServerApplication {
    public static void main(String[] args) {
        // 配置系统参数
        Properties prop = System.getProperties();
        // 配置数据库密码解密参数
        prop.put("jasypt.encryptor.password", "neusoftCrm2023");
        // 配置Logger全局异步
        prop.put("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
        // 系统中添加参数
        System.setProperties(prop);
        // 启动主程序
        SpringApplication.run(CrmServerApplication.class, args);
    }

}
